var id = "'.rand(1,3).'";<br />document.getelementbyid(id).style.background = "red" doesn't exist. Closest matches: